package com.example.paralleltaskdispatcher;

public class GlobalTask implements Runnable{
    private Double a;
    private Double b;

    public GlobalTask(Double a, Double b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public void run() {
        Double c = a + b;
        System.out.println("===================  a+b=" + c);
    }
}
